﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="EditMultiItem.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Item.EditMultiItem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript">
        var jrddlDept = new JskitRichDropDownList("jrddlDept");
        function PageOnLoad() {
            jrddlDept.deployTree(fixId("txt_Dept"), fixId("hid_Dept"), "Ws/_Dept.aspx?ok=&rk=");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
    批量更新对象
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <div class="action_bar">
        <asp:Button ID="btn_save" runat="server" Text="保存" OnClick="btn_save_Click" />
        <input type="reset" value="重置" />
        <input type="button" onclick="jskitBulter.redirect('Admin/Content/Item/List.aspx?cid=<%=Request.QueryString["cid"] %>')"
            value="取消" />
    </div>
    <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td valign="top">
                <fieldset style="width: 600px">
                    <legend>已选择的对象</legend>
                    <asp:GridView ID="gvlist" runat="server" AutoGenerateColumns="false" CssClass="GridView"
                        DataKeyNames="ItemKey">
                        <Columns>
                            <asp:BoundField DataField="ItemName" HeaderText="名称"></asp:BoundField>
                            <asp:BoundField DataField="CategoryName" HeaderText="分类"></asp:BoundField>
                <asp:BoundField DataField="DeptName" HeaderText="部门"></asp:BoundField>
                <asp:BoundField DataField="VisiableRoleName" HeaderText="可查看"></asp:BoundField>
                <asp:BoundField DataField="EditableRoleName" HeaderText="可编辑"></asp:BoundField>
                        </Columns>
                        <HeaderStyle CssClass="GridViewHeader" />
                        <RowStyle CssClass="GridViewRow" />
                        <FooterStyle CssClass="GirdViewFooter" />
                        <AlternatingRowStyle CssClass="GirdViewAlternatingRow" />
                        <PagerStyle CssClass="GridViewPager" />
                        <EmptyDataRowStyle CssClass="GridViewEmptyDataRow" />
                        <EmptyDataTemplate>
                            没有可用的数据</EmptyDataTemplate>
                    </asp:GridView>
                </fieldset>
            </td>
            <td valign="top">
                <fieldset style="width: 350px">
                    <legend>对象信息</legend>
                    <table border="0" cellpadding="0" cellspacing="0" class="edit_form">
                        <tr>
                            <td class="edit_form_item_title">
                                读权限：
                            </td>
                            <td class="edit_form_item_content">
                                <asp:DropDownList runat="server" ID="ddl_VisiableRole" DataTextField="RoleName" DataValueField="RoleKey">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="edit_form_item_title">
                                写权限：
                            </td>
                            <td class="edit_form_item_content">
                                <asp:DropDownList runat="server" ID="ddl_EditableRole" DataTextField="RoleName" DataValueField="RoleKey">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="edit_form_item_title">
                                所属部门：
                            </td>
                            <td class="edit_form_item_content">
                                <asp:TextBox runat="server" ID="txt_Dept"></asp:TextBox>
                                <asp:HiddenField runat="server" ID="hid_Dept" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
    </table>
</asp:Content>
